<?php 
/**
 * 大道CMS sql执行
 * @author   tongjh
 * @version  V1.0
 */
class SqlAction extends CommonAction {
	
   /**
     * sql执行
     * @access public
     * @return void
     */
    public function index(){        
        if(IS_POST){
            $m = M();
            $list = $m->query(I('post.sql'));
            $this->assign('list',$list);
        }
        $this->display();	
    }

    

}
?>